import request from '@/utils/request'

// 查询外来人员住宿申请列表
export function listApplication(data) {
  return request({
    url: '/dormitory/dms-foreign-application/list',
    method: 'post',
    data
  })
}

// 查询外来人员住宿申请详细
export function getApplication(id) {
  return request({
    url: '/dormitory/dms-foreign-application/' + id,
    method: 'get'
  })
}

// 新增外来人员住宿申请
export function addApplication(data) {
  return request({
    url: '/dormitory/dms-foreign-application/add',
    method: 'post',
    data: data
  })
}

// 修改外来人员住宿申请
export function updateApplication(data) {
  return request({
    url: '/system/application',
    method: 'post',
    data: data
  })
}

// 删除外来人员住宿申请
export function delApplication(data) {
  return request({
    url: '/dormitory/dms-foreign-application/batch/delete',
    method: 'post',
    data
  })
}
